const express = require('express')
const busboy = require('connect-busboy');
const app = express()
const port = 3000

const home = require('./router/home')
const birds = require('./router/birds')
const diff = require('./router/diff')
const user = require('./router/user')
const img = require('./router/img')
app.set('title', 'pug')

app.use(busboy())
app.use(express.json())
app.use('/', home)
app.use('/birds', birds)
app.use('/diff', diff)
app.use('/user', user)
app.use('/img', img)

app.listen(port, () => console.log(`Example app listening on port http://localhost:${port}`))